package com.example.demo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

//@AllArgsConstructor
public enum ResultCodeEnum {
    SUCCESS(200),
    NO_LOGIN(-1),
    FAIL(-2),
    PARAM_INVALID(-3),
    NO_RESOURCES(-4);

    private final int code;

    // 显式定义私有构造函数
    private ResultCodeEnum(int code)
    {
        this.code = code;
    }

    public int getCode()
    {
        return code;
    }
}
